package com.example.easybuy.pojo;

import org.apache.solr.client.solrj.beans.Field;
import org.springframework.stereotype.Component;

@Component
public class Products {
    //产品id
    @Field(value = "id")
    private String id;
    //产品名称
    @Field(value = "name_ik")
    private String name;
    //产品描述
    @Field(value = "describe_ik")
    private String describe;
    //产品价格
    @Field(value = "price_d")
    private double price;
    //库存
    @Field(value = "stock_i")
    private int stock;
    //分类1
    @Field(value = "classifyone_i")
    private int classifyone;
    //分类2
    @Field(value = "classifytwo_i")
    private int classifytwo;
    //分类3
    @Field(value = "classifythree_i")
    private int classifythree;
    //文件名称
    @Field(value = "fileName_ik")
    private String fileName;
    //是否删除(1：删除 0：未删除，使用逻辑删除)
    @Field(value = "isDelete_i")
    private int isDelete;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getClassifyone() {
        return classifyone;
    }

    public void setClassifyone(int classifyone) {
        this.classifyone = classifyone;
    }

    public int getClassifytwo() {
        return classifytwo;
    }

    public void setClassifytwo(int classifytwo) {
        this.classifytwo = classifytwo;
    }

    public int getClassifythree() {
        return classifythree;
    }

    public void setClassifythree(int classifythree) {
        this.classifythree = classifythree;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "Products{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", describe='" + describe + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                ", classifyone=" + classifyone +
                ", classifytwo=" + classifytwo +
                ", classifythree=" + classifythree +
                ", fileName='" + fileName + '\'' +
                ", isDelete=" + isDelete +
                '}';
    }
}
